﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class CustomerFeedbacks : _CustomerFeedbacks
    {
        public static void AddCustomerFeedback(string customerName, string content)
        {
            try
            {
                CustomerFeedbacks f = new CustomerFeedbacks();
                f.AddNew();
                f.CustomerName = customerName;
                f.Content = content;
                f.CreatedDate = DateTime.UtcNow.AddHours(SystemVariables.SysVars.TimeZone);
                f.Deleted = false;
                f.BranchID = Branches.CurrentBranchID;
                f.Save();
            }
            catch (Exception ex)
            {
                ErrorLog.WriteToFile("CustomerFeedbacks", "AddCustomerFeedback", ex.StackTrace);
            }
        }
    }
}
